home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.programming / comp.sys.amiga.programmer_8689_000045.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  1.6 KB

  1. Path: dd.chalmers.se!news.chalmers.se!sunic!trane.uninett.no!nntp.uio.no!nac.no!eunet.no!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uxa.cso.uiuc.edu!n-dade
  2. From: n-dade@uxa.cso.uiuc.edu ()
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: how do the math libraries work?
  5. Date: 7 Apr 1994 22:09:29 GMT
  6. Organization: University of Illinois at Urbana
  7. Lines: 29
  8. Message-ID: <2o20ap$klh@vixen.cso.uiuc.edu>
  9. References: <2nulca$k04@tornews.torolab.ibm.com>
  10. NNTP-Posting-Host: uxa.cso.uiuc.edu
  11.  
  12. mail delivery system here says "rs6nltc.torolab.ibm.com"? Host
  13. unknown!, so I post instead:
  14.  
  15. In comp.sys.amiga.programmer you write:
  16.  
  17. >Someone told me that if I use the math libraries in my C programs,
  18. >they will automatically use a math co-processor if it is
  19. >available, yet will still work on machines that lack one.
  20. >Is this true?
  21.  
  22. Yes, for the IEEE math libraries. No for the ffp libraries.
  23. When the IEEE libraries are opened for the first time they
  24. look around for
  25.  
  26.  1) an 6888x hooked directly to the cpu (by looking at the AttnFlags in execbase
  27.  2) a memory mapped 6888x or equivalent (by looking for a IEEEMathResource)
  28.  3) and if neither is found, they use their own software routines.
  29.  
  30. Once the library has decided how it is going to do its math, it
  31. creates its jump table so that the library vectors go straight to
  32. the correct routines. (This way it doesn't spend time deciding how
  33. to perform each math operation each time it is asked to perform a
  34. math operation).
  35.  
  36. The IEEEMathResource lets you have an 6888x in a 68000 system.
  37.  
  38. -Nicolas Dade / n9rzb / nicolas-dade@uiuc.edu
  39.